package com.rightsidetech.system.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: yhr
 * @Date: 2021-09-18 15:59
 */
@Data
public class AppVersionReq implements Serializable {

    @ApiModelProperty(value = "版本号",required = true)
    @NotBlank(message = "版本号不能为空")
    private String version;

    @ApiModelProperty(value = "app操作系统 1表示安卓 2表示ios",required = true)
    @NotNull(message = "操作系统不能为空")
    @Range(min = 1,max = 2,message = "操作系统参数不合法")
    private Byte appOs;

    @ApiModelProperty(value = "1.终端门店 2.代理商",required = true)
    @NotNull(message = "app类型为空")
    @Range(min = 1,max = 2,message = "app类型参数不合法")
    private Byte appType;
}
